// Add click event listener to table rows
document.querySelectorAll('.table tbody tr').forEach(row => {
    row.addEventListener('click', function () {
        // Remove selected class from all rows
        document.querySelectorAll('.table tbody tr').forEach(r => {
            r.classList.remove('selected');
        });
        // Add selected class to clicked row
        this.classList.add('selected');
    });
});